<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>付费内容审核-待审核</title>
    <%@ include file="../../common/meta.jsp" %>
    <%@ include file="../../common/common-body.jsp" %>
    <link href="${ctx}/css/page/common-list.css?t=${now}" rel="stylesheet">
    <link href="${ctx}/css/page/common-search.css?t=${now}" rel="stylesheet">
    <style>
    </style>
    <script>
        var checkTypeMap = ${checkTypeMap};
        var contentTypeMap = ${contentTypeMap};
        var yesOrNoMap = ${yesOrNoMap};
        var defLogInfo = ${defLogInfo};
    </script>
</head>
<body class="gray-bg">
<div id="vue">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="tabs-container">
            <ul class="nav nav-tabs">
                <c:if test="${not empty defLogInfo && defLogInfo.isCheckExist == 1}">
                    <li class="">
                        <a href="${ctx}/checkContent/checkContentPage" aria-expanded="true">待审核</a>
                    </li>
                </c:if>
                <li class="active">
                    <a href="${ctx}/checkContent/queryContentPage?isCheckExist=${not empty defLogInfo ? defLogInfo.isCheckExist : 1}" aria-expanded="true">已审核</a>
                </li>
            </ul>
            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5><i class="fa fa-search"></i> 筛选查询</h5>
                        </div>
                        <div class="ibox-content ibox-content-search">
                            <form class="form-horizontal m-t" id="searchForm" novalidate="novalidate">
                                <div class="form-group">
                                    <label class="col-sm-1 control-label">标题关键词：</label>
                                    <div class="col-sm-5">
                                        <input type="text" name="searchKey" onkeydown="if(event.keyCode==13){doRefresh();return false;}" id="searchKey" class="form-control"  placeholder="输入标题，专家，科室关键词" maxlength="30"
                                               value="${not empty defLogInfo ? defLogInfo.searchKey : ''}">
                                    </div>
                                    <label class="col-sm-1 control-label">审核结果：</label>
                                    <div class="col-sm-2">
                                        <select class="form-control" name="result" id="result" onchange="doRefresh()">
                                            <option value="">--请选择--</option>
                                            <c:forEach items="${resultTypeMap}" var="item">
                                                <option value="${item.key}" ${not empty defLogInfo && defLogInfo.result == item.key? 'selected' : '' } >${item.value}</option>
                                            </c:forEach>
                                        </select>
                                    </div>
                                    <div class="ibox-tools ibox-tools-search">
                                        <button type="button" class="btn btn-primary btn-outline" onclick="doRefresh()">查询</button>
                                        <button type="button" class="btn btn-primary btn-outline" onclick="clearFrom('searchForm')">重置</button>
                                        <button type="button" class="btn btn-primary btn-outline" onclick="openSearchTools();"><i class="fa fa-caret-down"></i></button>
                                    </div>
                                </div>
                                <div class="search-tools">
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label">审核类型：</label>
                                        <div class="col-sm-2">
                                            <select class="form-control" name="checkType" id="checkType" onchange="doRefresh()">
                                                <option value="">--请选择--</option>
                                                <c:forEach items="${checkTypeMap}" var="item">
                                                    <option value="${item.key}" ${not empty defLogInfo && defLogInfo.checkType == item.key? 'selected' : '' } >${item.value}</option>
                                                </c:forEach>
                                            </select>
                                        </div>
                                        <label class="col-sm-1 control-label">数据状态：</label>
                                        <div class="col-sm-2">
                                            <select class="form-control" name="dataStatus" id="dataStatus" onchange="doRefresh()">
                                                <option value="">--请选择--</option>
                                                <c:forEach items="${dataStatusMap}" var="item">
                                                    <option value="${item.key}" ${not empty defLogInfo && defLogInfo.dataStatus == item.key? 'selected' : '' } >${item.value}</option>
                                                </c:forEach>
                                            </select>
                                        </div>
                                        <label class="col-sm-1 control-label">内容类型：</label>
                                        <div class="col-sm-2">
                                            <select class="form-control" name="contentType" id="contentType" onchange="doRefresh()">
                                                <option value="">--请选择--</option>
                                                <c:forEach items="${contentTypeMap}" var="item">
                                                    <option value="${item.key}" ${not empty defLogInfo && defLogInfo.contentType == item.key? 'selected' : '' } >${item.value}</option>
                                                </c:forEach>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label">是否为付费内容：</label>
                                        <div class="col-sm-2">
                                            <select class="form-control" name="isFree" id="isFree" onchange="doRefresh()">
                                                <option value="">--请选择--</option>
                                                <c:forEach items="${yesOrNoMap}" var="item">
                                                    <option value="${item.key}" ${not empty defLogInfo && defLogInfo.isFree == item.key? 'selected' : '' } >${item.value}</option>
                                                </c:forEach>
                                            </select>
                                        </div>
                                        <label class="col-sm-1 control-label">是否平台收费：</label>
                                        <div class="col-sm-2">
                                            <select class="form-control" name="isPlatformCharge" id="isPlatformCharge" onchange="doRefresh()">
                                                <option value="">--请选择--</option>
                                                <c:forEach items="${yesOrNoMap}" var="item">
                                                    <option value="${item.key}" ${not empty defLogInfo && defLogInfo.isPlatformCharge == item.key? 'selected' : '' } >${item.value}</option>
                                                </c:forEach>
                                            </select>
                                        </div>
                                        <label class="col-sm-1 control-label">服务商：</label>
                                        <div class="col-sm-2">
                                            <div class="input-group">
                                                <input type="hidden" id="isvPid" name="isvPid" value="${not empty defLogInfo ? defLogInfo.isvPid : ''}">
                                                <input type="text" id="isvName" name="isvName" class="form-control" placeholder="请输入服务商名称" :value="logObj.isvName">
                                                <div class="input-group-btn" style="width: 0px;">
                                                    <button type="button" class="btn btn-default dropdown-toggle mySearchBtn" data-toggle="dropdown">
                                                        <span class="caret"></span>
                                                    </button>
                                                    <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label">审核时间：</label>
                                        <div class="col-sm-5">
                                            <input placeholder="审核时间" value="${not empty defLogInfo ? defLogInfo.timeInterval : ''}" class="form-control layer-date" id="timeInterval" name="timeInterval">
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5><%--<i class="fa fa-table"></i> 健康内容信息--%></h5>
                            <div class="ibox-tools col-sm-offset-2">
                                <button class="btn btn-primary btn-outline" onclick="openInfoOrderPage()">查看</button>
                                <button class="btn btn-primary btn-outline" onclick="doRefresh()">刷新</button>
                            </div>
                        </div>
                        <div class="ibox-content">
                            <table class='table table-striped table-hover'
                                   id="dataTable" data-height="370"
                                   data-toggle="table"
                                   data-url="${ctx}/checkContent/pageFindQueryData?t=${now}"
                                   data-pagination="true"
                                   data-side-pagination="server"
                                   data-striped="true"
                                   data-response-handler="handleServerResult"
                                   data-query-params-type=""
                                   data-query-params="getParams"
                                   data-page-number="${not empty defLogInfo.pageNo ? defLogInfo.pageNo : 1}"
                                   data-page-size="${not empty defLogInfo.pageSize ? defLogInfo.pageSize : defaultPageSize}"
                                   data-page-list="${pageList}">
                                <thead>
                                <tr>
                                    <th data-field="id" data-visible="false">主键id</th>
                                    <th data-field="contentCode" data-visible="false">内容编码</th>
                                    <th data-field="result" data-formatter="formatResult" data-align="center" data-width="90px">审核结果</th>
                                    <th data-field="checkType" data-formatter="formatCheckType" data-align="center" data-width="90px">审核类型</th>
                                    <th data-field="isvName" data-formatter="formatIsv" data-events="actionEvents" data-align="center" data-width="180px">服务商</th>
                                    <th data-field="title" data-formatter="formatName" data-events="actionEvents" data-align="center">内容标题</th>
                                    <th data-field="contentType" data-formatter="formatContentType" data-align="center" data-width="90px">内容类型</th>
                                    <th data-field="isFree" data-formatter="formatIsFree" data-align="center" data-width="110px">是否为付费内容</th>
                                    <th data-field="isPlatformCharge" data-formatter="formatIsPlatformCharge" data-align="center" data-width="100px">是否平台收费</th>
                                    <th data-field="operatorCommit" data-formatter="formatterCommit" data-align="center" data-width="100px">提交人</th>
                                    <th data-field="operator" data-formatter="formatterCheck" data-align="center" data-width="100px">审核人</th>
                                </tr>
                                </thead>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-12">
                    <div class="text-center">${companyName}</div>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="${ctx}/js/check/content/queryContentMgr.js?t=${now}"></script>
</body>
</html>
